package auth

import org.springframework.security.core.GrantedAuthority
import org.springframework.security.core.userdetails.User

class UserEx extends User {
    String realName;

    UserEx(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    UserEx(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }

    UserEx(String username, String password, String realName, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.realName = realName;
    }
}
